package persistence;

import java.io.Serializable;
import java.text.DecimalFormat;
import java.text.ParseException;

public class IndicatorVO implements Serializable{
	
	private String idstock = "";
	private String close = "";
	private String volume = "";
	private String MI05_perc = "";
	private String MI04_perc = ""; 
	private String MI05 = ""; 
	private String MI04 = "";
	private String vol_min = "";
	private String vol_max = "";
	private String percHL = "";
	private String buy_1 = "";
	private String stop_1 = "";
	private String limit_1 = "";
	private String buy_2 = "";
	private String stop_2 = "";
	private String limit_2 = "";
	private String buy = "";
	private String sell = "";
	private String idscript = "";
		
	private String formatFloat(String value){
			//java.text.DecimalFormat formatter = new java.text.DecimalFormat("###.000");
			return DecimalFormat.getNumberInstance().format(Double.parseDouble(value));
	}
	public String getIdstock() {
		return idstock;
	}
	public String getClose() {
		return close;
	}
	public String getVolume() {
		return volume;
	}
	public String getMI05_perc() {
		return MI05_perc;
	}
	public String getMI04_perc() {
		return MI04_perc;
	}
	public String getMI05() {
		return MI05;
	}
	public String getMI04() {
		return MI04;
	}
	public String getVol_min() {
		return vol_min;
	}
	public String getVol_max() {
		return vol_max;
	}
	public String getPercHL() {
		return percHL;
	}
	public String getBuy_1() {
		return buy_1;
	}
	public String getStop_1() {
		return stop_1;
	}
	public String getLimit_1() {
		return limit_1;
	}
	public String getBuy_2() {
		return buy_2;
	}
	public String getStop_2() {
		return stop_2;
	}
	public String getLimit_2() {
		return limit_2;
	}
	public String getBuy() {
		return buy;
	}
	public String getSell() {
		return sell;
	}
	public String getIdscript() {
		return idscript;
	}
	public void setIdstock(String idstock) {
		this.idstock = idstock;
	}
	public void setClose(String close) {
		this.close = close;
	}
	public void setVolume(String volume) {
		this.volume = volume;
	}
	public void setMI05_perc(String mI05Perc) {
		MI05_perc = formatFloat(mI05Perc);
	}
	public void setMI04_perc(String mI04Perc) {
		MI04_perc = formatFloat(mI04Perc);
	}
	public void setMI05(String mI05) {
		MI05 = formatFloat(mI05);
	}
	public void setMI04(String mI04) {
		MI04 = formatFloat(mI04);
	}
	public void setVol_min(String volMin) {
		vol_min = formatFloat(volMin);
	}
	public void setVol_max(String volMax) {
		vol_max = formatFloat(volMax);
	}
	public void setPercHL(String percHL) {
		this.percHL = formatFloat(percHL);
	}
	public void setBuy_1(String buy_1) {
		this.buy_1 = formatFloat(buy_1);
	}
	public void setStop_1(String stop_1) {
		this.stop_1 = formatFloat(stop_1);
	}
	public void setLimit_1(String limit_1) {
		this.limit_1 = formatFloat(limit_1);
	}
	public void setBuy_2(String buy_2) {
		this.buy_2 = formatFloat(buy_2);
	}
	public void setStop_2(String stop_2) {
		this.stop_2 = formatFloat(stop_2);
	}
	public void setLimit_2(String limit_2) {
		this.limit_2 = formatFloat(limit_2);
	}
	public void setBuy(String buy) {
		this.buy = buy;
	}
	public void setSell(String sell) {
		this.sell = sell;
	}
	public void setIdscript(String idscript) {
		this.idscript = idscript;
	}


    
}
